package annotation;

import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 * 标记处理器类的注解，类似于@Service
 * 用于标识业务处理器组件
 *
 * @author 韩
 * @since 2025-03-10
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Component
public @interface Processor {
    
    /**
     * 处理器名称
     */
    @AliasFor(annotation = Component.class)
    String value() default "";
}